﻿using System;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Ink;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
using System.Collections.ObjectModel;
using TheDrinksApp.Models;
using GalaSoft.MvvmLight.Command;
using TheDrinksApp.Database;

namespace TheDrinksApp.ViewModel
{
    public class ChooseCategoryViewModel : ObservableObject
    {
        ObservableCollection<CatergoryDAO> listCategory = new ObservableCollection<CatergoryDAO>();

        public ObservableCollection<CatergoryDAO> ListCategory
        {
            get { return listCategory; }
            set
            {
                listCategory = value;
                NotifyPropertyChanged("ListCategory");
            }
        }

        public ChooseCategoryViewModel()
        {
            ListCategory = Util.GetAllCatergory();

            ListCategory[0].ImagePath = "/Resources/drinkCategoriesBeerIcon.png";
            ListCategory[1].ImagePath = "/Resources/drinkCategoriesWinesIcon.png";
            ListCategory[2].ImagePath = "/Resources/drinkCategoriesSpiritIcon.png";
            ListCategory[3].ImagePath = "/Resources/drinkCategoriesCoctailsIcon.png";
            ListCategory[4].ImagePath = "/Resources/drinkCategoriesNonAlcohoolIcon.png";
        }
    }
}
